/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 *
 * @author Ero
 */
public class PilaTest extends TestCase {
    
    public PilaTest(String testName) {
        super(testName);
    }

    public static Test suite() {
        TestSuite suite = new TestSuite(PilaTest.class);
        return suite;
    }
    
    @Override
    protected void setUp() throws Exception {
        super.setUp();
    }
    
    @Override
    protected void tearDown() throws Exception {
        super.tearDown();
    }

    /**
     * Test of push method, of class Pila.
     */
    public void testPush() {
        System.out.println("push");
        Object item = null;
        Pila instance = new Pila();
        instance.push(item);
        

    }

    /**
     * Test of pop method, of class Pila.
     */
    public void testPop() {
        System.out.println("pop");
        
        Pila instance = new Pila();
        instance.push(null);
        Object expResult = null;
        Object result = instance.pop();
        assertEquals(expResult, result);

    }

    /**
     * Test of peek method, of class Pila.
     */
    public void testPeek() {
        System.out.println("peek");
        Pila instance = new Pila();
        Object expResult = null;
        instance.push(null);
        Object result = instance.peek();
        assertEquals(expResult, result);

    }

    /**
     * Test of size method, of class Pila.
     */
    public void testSize() {
        System.out.println("size");
        Pila instance = new Pila();
        int expResult = 0;
        int result = instance.size();
        assertEquals(expResult, result);

    }

    /*
     * Test of empty method, of class Pila.
     */
    public void testEmpty() {
        System.out.println("empty");
        Pila instance = new Pila();
        boolean expResult = true;
        boolean result = instance.empty();
        assertEquals(expResult, result);

    }
}

